<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link href="_system/css/common.css" rel="stylesheet" type="text/css">
<link href="_system/images/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="_system/js/common.js">
<!--

//-->
</script>
<body>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" height="29" valign="top" background="_system/images/mail_leftbg.gif">
				<img src="_system/images/left-top-right.gif" width="17" height="29" />
			</td>
			<td width="935" height="29" valign="top" background="_system/images/content-bg.gif">
				<table width="100%" height="31" border="0" cellpadding="0"
					cellspacing="0" class="left_topbg" id="table2">
					<tr>
						<td height="31">
							<div class="titlebt">
								收费清单
							</div>
						</td>
					</tr>
				</table>
			</td>
			<td width="16" valign="top" background="_system/images/mail_rightbg.gif">
				<img src="_system/images/nav-right-bg.gif" width="16" height="29" />
			</td>
		</tr>
		<tr>
			<td height="71" valign="middle" background="_system/images/mail_leftbg.gif">
				&nbsp;
			</td>
			<td valign="top" bgcolor="#F7F8F9">
				<table width="100%" height="138" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td height="13" valign="top">
							&nbsp;
						</td>
					</tr>
					<tr>
						<td valign="top">
							
							
							
							<s:iterator var="charge" value="%{#request.charge}">
							<s:form id="theForm" action="update_charge" enctype="multipart/form-data" theme="simple" onsubmit="return doSubmit('update');">
								<s:token></s:token>
								<s:hidden name="charge.cid" value="%{#charge.cid}"></s:hidden>
								<table width="98%" border="0" align="center" cellpadding="0"
									cellspacing="0">
									<tr>
										<td class="left_txt">
											当前位置：管理收费
										</td>
									</tr>
									<tr>
										<td height="20">
											<table width="100%" height="1" border="0" cellpadding="0"
												cellspacing="0" bgcolor="#CCCCCC">
												<tr>
													<td></td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" height="55" border="0" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="10%" height="55" valign="middle">
														<img src="_system/images/title.gif" width="54" height="55">
													</td>
													<td width="90%" valign="top">
														<span class="left_txt2">管理收费!</span>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											&nbsp;
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" height="31" border="0" cellpadding="0"
												cellspacing="0" class="nowtable">
												<tr>
													<td class="left_bt2">
														&nbsp;&nbsp;&nbsp;&nbsp;收费&nbsp;&nbsp;&lt;&nbsp;序号: ${charge.cid}&nbsp;&gt;
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														住户：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:action name="list_tenement" namespace="/admin"></s:action>
														<s:select id="sTid" name="charge.tenement.tid" 
															list="%{#{'0':'none'}}" value="%{#charge.tenement.tid}"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()">
															<s:iterator value="%{#request.tenementList}" var="opt">
																<s:optgroup list="%{#opt}" 
																	listKey="tid" listValue="tname" label="%{'ID:'+#opt.ID}">
																</s:optgroup>
															</s:iterator>
														</s:select>
														<s:if test="%{null == #charge.tenement}">
															&nbsp;
														</s:if>
														<s:else>
															<s:a href="get_tenement?tenement.tid=%{#charge.tenement.tid}">
																go
															</s:a>	
														</s:else>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="charge.tenement.tid" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														条目：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:textfield name="charge.item" value="%{#charge.item}" size="23"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()"></s:textfield>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="charge.item" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														日期：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:date name="%{#charge.date}" format="yyyy-MM-dd" var="cDate"/>
														<s:textfield name="charge.date" value="%{#cDate}" size="23"
															readonly="true" onmouseover="doOver()" onmouseout="doOut()">
														</s:textfield>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="charge.date" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														总额：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:textfield name="charge.total" value="%{#charge.total}" size="23"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()"></s:textfield>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="charge.total" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														已付金额：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:textfield name="charge.payed" value="%{#charge.payed}" size="23"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()"></s:textfield>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="charge.payed" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														欠费金额：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:textfield name="charge.owe" value="%{#charge.owe}" size="23"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()"></s:textfield>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="charge.owe" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														支付方式：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:textfield name="charge.payWay" value="%{#charge.payWay}" size="23"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()"></s:textfield>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="charge.payWay" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														支付日期：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:date name="%{#charge.payDate}" format="yyyy-MM-dd" var="payDate"/>
														<s:textfield name="charge.payDate" value="%{#payDate}" size="23"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()">
														</s:textfield>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="charge.payWay" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														支付人：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:textfield name="charge.transactor" value="%{#charge.transactor}" size="23"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()"></s:textfield>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="charge.transactor" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														备注：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:textarea name="charge.note" value="%{#charge.note}"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()">
														</s:textarea>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="charge.note" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														<s:a href="delete_charge?charge.cid=%{#charge.cid}" 
															onclick="return confirm(\"do you want to delete?\")">
															<img src="_system/images/delete.jpg" border="0"></img>
														</s:a>
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:submit value="update" type="image" src="_system/images/update.jpg"></s:submit>
														&nbsp;&nbsp;&nbsp;&nbsp;
														<s:submit value="reset" type="image" src="_system/images/reset.jpg" onclick="javascript:document.forms['theForm'].reset(); return false;" ></s:submit>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														&nbsp;
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</s:form>
							</s:iterator>
						</td>
					</tr>
				</table>
			</td>
			<td background="_system/images/mail_rightbg.gif">
				&nbsp;
			</td>
		</tr>
		<tr>
			<td valign="middle" background="_system/images/mail_leftbg.gif">
				<img src="_system/images/buttom_left2.gif" width="17" height="17" />
			</td>
			<td height="17" valign="top" background="_system/images/buttom_bgs.gif">
				<img src="_system/images/buttom_bgs.gif" width="17" height="17" />
			</td>
			<td background="_system/images/mail_rightbg.gif">
				<img src="_system/images/buttom_right2.gif" width="16" height="17" />
			</td>
		</tr>
	</table>
</body>